<template>
  <div class="sum-box">
        <div class="box-title">
          {{ sumInfo.sumTitle }}
        </div>
        <div class="box-content" :style='{ color:activeColor }'>
          {{ sumInfo.sumNum }}
        </div>
  </div>
</template>

<script>
export default {
  props: {
    // 传入的对象
    sumInfo: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      activeColor:''
    };
  },
  created() {
    this.activeColor = this.sumInfo.sumColor
  },
};
</script>

<style scoped lang='scss'>
.sum-box {
  width: 100%;
  height: 100%;
  // flex-direction: column;
  // justify-content: space-around;
  background-size:100% 100%;
  background-image: url('../../assets/img/view-header-tab.png');
  .box-title{
    height: 30%;
    width: 100%;
    font-size: 8rem;
    text-align: center;
    padding-top: 8%;
    color: #fff;
  }
  .box-content{
    height: 50%;
    width: 100%;
    font-size: 20rem;
    // color: rgb(137, 190, 137);
    text-align: center;
    padding-top: 4%;
  }
}
</style>